import { getgoodOrder } from '@/api/goodOrder';

export default {
    namespaced: true,
    state: {
        goodOrderList: {}
    },
    getters: {
        getgoodOrderList(state) {
            return state.goodOrderList
        }
    },
    mutations: {
        getgoodOrderListMutation(state, payload) {
            state.goodOrderList = payload;
        }
    },
    actions: {
        getgoodOrderListAction({commit},payload) {
            getgoodOrder().then(( res ) => {
                commit('getgoodOrderListMutation', res)
            })
        }
    }
}